#ifndef __TEXTBUFFER__HPP__
#define __TEXTBUFFER__HPP__

#include <string>
#include <vector>

#include "Iserialize.hpp"

class TextBuffer : public ISerialize
{
public:
  TextBuffer();
  ~TextBuffer();

  void LoadFromMemory(unsigned char *, int);
  std::string* GetLine(unsigned int);

private:

  void serializeUp();
  void serializeDown();

  std::vector<std::string> lines_;

};

#endif
